<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>用户列表</title>
	<style type="text/css">
	</style>
</head>
<body class="childrenBody">
<form class="layui-form">
	<blockquote class="layui-elem-quote quoteBox">
		<form class="layui-form">
			<div class="layui-inline">
				<div class="layui-input-inline">
					<input type="text" class="layui-input searchVal" placeholder="请输入用户名" />
				</div>
				<a class="layui-btn search_btn" data-type="reload">搜索</a>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-normal addUsers_btn">添加用户</a>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-danger layui-btn-normal delAll_btn">批量删除</a>
			</div>
			<div class="layui-inline">
				<a class="layui-btn layui-btn-warm layui-btn-normal reset_btn">重置密码</a>
			</div>
		</form>
	</blockquote>
	<table id="userList" lay-filter="userList"></table>

	<!--操作-->
	<script type="text/html" id="userListBar">
		{{# if(curUser.userId == 1){ }}
			{{# if(d.userId != 1){ }}
			<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
			{{# if(d.status == 1){ }}
				<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="usable">已启用</a>
			{{# }else if(d.status == 0){ }}
				<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="usable">已禁用</a>
			{{# } }}
				<a class="layui-btn layui-btn-xs layui-btn-danger del" lay-event="del">删除</a>
			{{# } }}
		{{# }else{ }}
			{{# if(d.roleList=='管理员'|| d.userId==1){ }}
			{{# }else{ }}
				<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
			{{# if(d.status == 1){ }}
				<a class="layui-btn layui-btn-xs layui-btn-warm" lay-event="usable">已启用</a>
			{{# }else if(d.status == 0){ }}
				<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="usable">已禁用</a>
			{{# } }}
			{{# } }}
		{{# } }}

		
		
	</script>
</form>
	<script type="text/javascript" src="${request.contextPath}/static/js/modules/sys/userList.js"></script>
</body>
</html>